package cn.edu.bjfu.practice.practice.teacher.pojo.query;

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class AddCourseForm {

    @NotBlank(message = "姓名不能为空")
    private String name;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date date;

    @NotBlank
    private String grade;

    @NotNull
    private Integer teacher_id;

    public Integer getTeacher_id() {
        return teacher_id;
    }

    public void setTeacher_id(Integer teacher_id) {
        this.teacher_id = teacher_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }
}
